﻿using System.ComponentModel.Composition;
using System.Windows;

namespace ScrumFactory.Windows {

    public partial class MessageBox : Window, IMessageBoxView {

        private ViewModel.IMessageBoxViewModel model;

        public MessageBox() {
            InitializeComponent();                
        }

        public ViewModel.IMessageBoxViewModel Model {
            get {
                return this.model;
            }
            set {
                this.model = value;
                this.DataContext = value;
            }
        }

        void IMessageBoxView.Show() {
            Owner = Application.Current.MainWindow;
            ShowDialog();            
        }

        void IMessageBoxView.Close() {
            this.Close();            
        }

        
    }
}
